<?php

namespace App;

class LoginLog extends Base
{
    protected $table = 'login_log';

    public $timestamps = false;

    public function admin()
    {
        return $this->belongsTo('App\Admin', 'user_id', 'id');
    }

    public function loginTime()
    {
        return date('Y-m-d H:i:s', $this->login_time);
    }
}
